﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StockClientUI
{
    public partial class MainF : Form
    {
        public MainF(DataSet ds)
        {
            InitializeComponent();
            this.skinEngine1.SkinFile = Application.StartupPath + @"\DiamondGreen.ssk";
            dgvOutMoney.DataSource = ds.Tables[0].DefaultView;
            int start = 12;
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {



                    if (i == 1)
                    {


                        this.button3.Text = ds.Tables[0].Rows[i]["Shop_name"].ToString() + @"\" + ds.Tables[0].Rows[i]["spred"].ToString();

                    }
                    else
                    {

                        this.button1.Text = ds.Tables[0].Rows[i]["Shop_name"].ToString() + @"\" + ds.Tables[0].Rows[i]["spred"].ToString();
                    }
                }
            }

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}